//
//  EPOSIndentListModel.m
//  BCGenieEffect
//
//  Created by Ios Entity Generator on 2014-03-07 14:45:30
//  Copyright (c) 2014年 Bartosz Ciechanowski. All rights reserved.
//

#import "EPOSIndentListModel.h"

@implementation EPOSIndentListModel

+(id) getEPOSIndentListModelFromDictionary :(NSDictionary *) dic {
    EPOSIndentListModel * indentListModel = [[EPOSIndentListModel alloc]init] ;
    indentListModel.CmtCasher = [dic objectForKey:@"CmtCasher"];
    indentListModel.OOSRevDistrict = [dic objectForKey:@"OOSRevDistrict"];
    indentListModel.OOSSendGoodsTime = [dic objectForKey:@"OOSSendGoodsTime"];
    indentListModel.IsTest = [dic objectForKey:@"IsTest"];
    indentListModel.SaleID = [dic objectForKey:@"SaleID"];
    indentListModel.OOSInvoiceType = [dic objectForKey:@"OOSInvoiceType"];
    indentListModel.TotalQty = [dic objectForKey:@"TotalQty"];
    indentListModel.CashierCode = [dic objectForKey:@"CashierCode"];
    indentListModel.OOSRevTel = [dic objectForKey:@"OOSRevTel"];
    indentListModel.OOSRefErpID = [dic objectForKey:@"OOSRefErpID"];
    indentListModel.BillBankDayCode = [dic objectForKey:@"BillBankDayCode"];
    indentListModel.OOSBanggoGainRat = [dic objectForKey:@"OOSBanggoGainRat"];
    indentListModel.DiscountMoney = [dic objectForKey:@"DiscountMoney"];
    indentListModel.CashierTeamID = [dic objectForKey:@"CashierTeamID"];
    indentListModel.SaleDate = [dic objectForKey:@"SaleDate"];
    indentListModel.CashierUserID = [dic objectForKey:@"CashierUserID"];
    indentListModel.Change = [dic objectForKey:@"Change"];
    indentListModel.IsOOS = [dic objectForKey:@"IsOOS"];
    indentListModel.IsDelete = [dic objectForKey:@"IsDelete"];
    indentListModel.O2OSaleType = [dic objectForKey:@"O2OSaleType"];
    indentListModel.Selected = [dic objectForKey:@"Selected"];
    indentListModel.OOSRevName = [dic objectForKey:@"OOSRevName"];
    indentListModel.AssitantCashierUserID = [dic objectForKey:@"AssitantCashierUserID"];
    indentListModel.OOSInvoiceContext = [dic objectForKey:@"OOSInvoiceContext"];
    indentListModel.OOSSendGoodsRemark = [dic objectForKey:@"OOSSendGoodsRemark"];
    indentListModel.IsUpload = [dic objectForKey:@"IsUpload"];
    indentListModel.OOSBanggoPrePay = [dic objectForKey:@"OOSBanggoPrePay"];
    indentListModel.OOSShippingCode = [dic objectForKey:@"OOSShippingCode"];
    indentListModel.OOSPayType = [dic objectForKey:@"OOSPayType"];
    indentListModel.OOSRevCountry = [dic objectForKey:@"OOSRevCountry"];
    indentListModel.OrgCode = [dic objectForKey:@"OrgCode"];
    indentListModel.Memo = [dic objectForKey:@"Memo"];
    indentListModel.LinkSaleNo = [dic objectForKey:@"LinkSaleNo"];
    indentListModel.SaleTypeName = [dic objectForKey:@"SaleTypeName"];
    indentListModel.VIPCode = [dic objectForKey:@"VIPCode"];
    indentListModel.CmtSeller = [dic objectForKey:@"CmtSeller"];
    indentListModel.OOSRevAddressEx = [dic objectForKey:@"OOSRevAddressEx"];
    indentListModel.VIPID = [dic objectForKey:@"VIPID"];
    indentListModel.OOSRevProvince = [dic objectForKey:@"OOSRevProvince"];
    indentListModel.SaleNo = [dic objectForKey:@"SaleNo"];
    indentListModel.CutMoney = [dic objectForKey:@"CutMoney"];
    indentListModel.OOSExpsFee = [dic objectForKey:@"OOSExpsFee"];
    indentListModel.OOSRevPost = [dic objectForKey:@"OOSRevPost"];
    indentListModel.OOSShipping = [dic objectForKey:@"OOSShipping"];
    indentListModel.VIPMobile = [dic objectForKey:@"VIPMobile"];
    indentListModel.OOSRefErpNO = [dic objectForKey:@"OOSRefErpNO"];
    indentListModel.PrintTime = [dic objectForKey:@"PrintTime"];
    indentListModel.OOSRevCity = [dic objectForKey:@"OOSRevCity"];
    indentListModel.InvoiceNo = [dic objectForKey:@"InvoiceNo"];
    indentListModel.TotalMoney = [dic objectForKey:@"TotalMoney"];
    indentListModel.VerID = [dic objectForKey:@"VerID"];
    indentListModel.OwnerOrgCode = [dic objectForKey:@"OwnerOrgCode"];
    indentListModel.DiscountRate = [dic objectForKey:@"DiscountRate"];
    indentListModel.EntityState = [dic objectForKey:@"EntityState"];
    indentListModel.OOSInvoiceTitle = [dic objectForKey:@"OOSInvoiceTitle"];
    indentListModel.OOSExpsPayer = [dic objectForKey:@"OOSExpsPayer"];
    indentListModel.CurrencyCode = [dic objectForKey:@"CurrencyCode"];
    indentListModel.OOSRevAddress = [dic objectForKey:@"OOSRevAddress"];
    indentListModel.SaleType = [dic objectForKey:@"SaleType"];
    indentListModel.RetailSaleID = [dic objectForKey:@"RetailSaleID"];
    indentListModel.PrintNums = [dic objectForKey:@"PrintNums"];
    indentListModel.DiscountReason = [dic objectForKey:@"DiscountReason"];
    indentListModel.CashierID = [dic objectForKey:@"CashierID"];
    indentListModel.LocalTime = [dic objectForKey:@"LocalTime"];
    return indentListModel ;
}

+(NSMutableDictionary *) getDictionaryFromEPOSIndentListModel :(EPOSIndentListModel* ) indentListModel {
    NSMutableDictionary * dic = [[NSMutableDictionary alloc]init] ;
    [dic setObject:indentListModel.CmtCasher forKey:@"CmtCasher"];
    [dic setObject:indentListModel.OOSRevDistrict forKey:@"OOSRevDistrict"];
    [dic setObject:indentListModel.OOSSendGoodsTime forKey:@"OOSSendGoodsTime"];
    [dic setObject:indentListModel.IsTest forKey:@"IsTest"];
    [dic setObject:indentListModel.SaleID forKey:@"SaleID"];
    [dic setObject:indentListModel.OOSInvoiceType forKey:@"OOSInvoiceType"];
    [dic setObject:indentListModel.TotalQty forKey:@"TotalQty"];
    [dic setObject:indentListModel.CashierCode forKey:@"CashierCode"];
    [dic setObject:indentListModel.OOSRevTel forKey:@"OOSRevTel"];
    [dic setObject:indentListModel.OOSRefErpID forKey:@"OOSRefErpID"];
    [dic setObject:indentListModel.BillBankDayCode forKey:@"BillBankDayCode"];
    [dic setObject:indentListModel.OOSBanggoGainRat forKey:@"OOSBanggoGainRat"];
    [dic setObject:indentListModel.DiscountMoney forKey:@"DiscountMoney"];
    [dic setObject:indentListModel.CashierTeamID forKey:@"CashierTeamID"];
    [dic setObject:indentListModel.SaleDate forKey:@"SaleDate"];
    [dic setObject:indentListModel.CashierUserID forKey:@"CashierUserID"];
    [dic setObject:indentListModel.Change forKey:@"Change"];
    [dic setObject:indentListModel.IsOOS forKey:@"IsOOS"];
    [dic setObject:indentListModel.IsDelete forKey:@"IsDelete"];
    [dic setObject:indentListModel.O2OSaleType forKey:@"O2OSaleType"];
    [dic setObject:indentListModel.Selected forKey:@"Selected"];
    [dic setObject:indentListModel.OOSRevName forKey:@"OOSRevName"];
    [dic setObject:indentListModel.AssitantCashierUserID forKey:@"AssitantCashierUserID"];
    [dic setObject:indentListModel.OOSInvoiceContext forKey:@"OOSInvoiceContext"];
    [dic setObject:indentListModel.OOSSendGoodsRemark forKey:@"OOSSendGoodsRemark"];
    [dic setObject:indentListModel.IsUpload forKey:@"IsUpload"];
    [dic setObject:indentListModel.OOSBanggoPrePay forKey:@"OOSBanggoPrePay"];
    [dic setObject:indentListModel.OOSShippingCode forKey:@"OOSShippingCode"];
    [dic setObject:indentListModel.OOSPayType forKey:@"OOSPayType"];
    [dic setObject:indentListModel.OOSRevCountry forKey:@"OOSRevCountry"];
    [dic setObject:indentListModel.OrgCode forKey:@"OrgCode"];
    [dic setObject:indentListModel.Memo forKey:@"Memo"];
    [dic setObject:indentListModel.LinkSaleNo forKey:@"LinkSaleNo"];
    [dic setObject:indentListModel.SaleTypeName forKey:@"SaleTypeName"];
    [dic setObject:indentListModel.VIPCode forKey:@"VIPCode"];
    [dic setObject:indentListModel.CmtSeller forKey:@"CmtSeller"];
    [dic setObject:indentListModel.OOSRevAddressEx forKey:@"OOSRevAddressEx"];
    [dic setObject:indentListModel.VIPID forKey:@"VIPID"];
    [dic setObject:indentListModel.OOSRevProvince forKey:@"OOSRevProvince"];
    [dic setObject:indentListModel.SaleNo forKey:@"SaleNo"];
    [dic setObject:indentListModel.CutMoney forKey:@"CutMoney"];
    [dic setObject:indentListModel.OOSExpsFee forKey:@"OOSExpsFee"];
    [dic setObject:indentListModel.OOSRevPost forKey:@"OOSRevPost"];
    [dic setObject:indentListModel.OOSShipping forKey:@"OOSShipping"];
    [dic setObject:indentListModel.VIPMobile forKey:@"VIPMobile"];
    [dic setObject:indentListModel.OOSRefErpNO forKey:@"OOSRefErpNO"];
    [dic setObject:indentListModel.PrintTime forKey:@"PrintTime"];
    [dic setObject:indentListModel.OOSRevCity forKey:@"OOSRevCity"];
    [dic setObject:indentListModel.InvoiceNo forKey:@"InvoiceNo"];
    [dic setObject:indentListModel.TotalMoney forKey:@"TotalMoney"];
    [dic setObject:indentListModel.VerID forKey:@"VerID"];
    [dic setObject:indentListModel.OwnerOrgCode forKey:@"OwnerOrgCode"];
    [dic setObject:indentListModel.DiscountRate forKey:@"DiscountRate"];
    [dic setObject:indentListModel.EntityState forKey:@"EntityState"];
    [dic setObject:indentListModel.OOSInvoiceTitle forKey:@"OOSInvoiceTitle"];
    [dic setObject:indentListModel.OOSExpsPayer forKey:@"OOSExpsPayer"];
    [dic setObject:indentListModel.CurrencyCode forKey:@"CurrencyCode"];
    [dic setObject:indentListModel.OOSRevAddress forKey:@"OOSRevAddress"];
    [dic setObject:indentListModel.SaleType forKey:@"SaleType"];
    [dic setObject:indentListModel.RetailSaleID forKey:@"RetailSaleID"];
    [dic setObject:indentListModel.PrintNums forKey:@"PrintNums"];
    [dic setObject:indentListModel.DiscountReason forKey:@"DiscountReason"];
    [dic setObject:indentListModel.CashierID forKey:@"CashierID"];
    [dic setObject:indentListModel.LocalTime forKey:@"LocalTime"];
    return dic ;
}

@end